home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980424-19980901
/
000338_news@newsmaster….columbia.edu _Mon Aug 3 09:59:12 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA16535
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 3 Aug 1998 09:59:11 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA10332
for kermit.misc@watsun; Mon, 3 Aug 1998 09:59:11 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How to set up FTP with Kermit in HP-Ux
Date: 3 Aug 1998 13:59:08 GMT
Organization: Columbia University
Lines: 73
Message-ID: <6q4fnc$d76$1@apakabar.cc.columbia.edu>
References: <6q47u5$c5d$1@nbox.wins.uva.nl>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:9050
In article <6q47u5$c5d$1@nbox.wins.uva.nl>,
H.Lieuw <hlieuw@gene.wins.uva.nl> wrote:
: Hello All
:
: I need to set up a slip connection with a remote network in order
: to ftp to a remote host.
:
: How can I do that with kermit?
: (do you have examples/scripts?)
:
: I already ordered the manual "Using C-kermit"
: however time is pressing, and I need to setup the connection
: as soon as possible.
:
You mean, you want to make a SLIP connection from HP-UX to the remote
network? You can use C-Kermit for your SLIP dialer in this situation,
and there might be some advantages to that (phone-number translation,
automatic redialing, scripting, etc), but once the connection is made,
you still need a way to hand it over to your TCP/IP stack.
This is covered in item 27 of the Kermit FAQ:
http://www.columbia.edu/kermit/faq.html
ftp://kermit.columbia.edu/kermit/faq.txt
27 How Can I Exit from C-Kermit without Hanging Up?
Many people want to be able to make a dialout connection with UNIX C-Kermit,
but then use some other software on the connection that C-Kermit made. For
example, they want to use C-Kermit as their SLIP or PPP dialer. But they
quickly find that when they exit from C-Kermit, that the connection is gone
before they can start the other application.
It is a fundamental property of UNIX (and VMS, and Windows 95 and NT, and
most other modern operating systems) that when a process exits, then every
file that was opened by that process is automatically closed by the
operating system. In most cases, closing a terminal device (such as a
dialout serial port) hangs up the modem (by turning off the DTR signal).
There is nothing the process can do about it.
However, many workarounds are possible. Here are just a few:
- If your C-Kermit version supports the REDIRECT command, use it to
start the desired application (e.g. "redirect pppd"). The REDIRECT
command runs the given application with its standard input and output
redirected to the communications channel opened by C-Kermit's most
recent SET LINE or SET HOST command.
- Tell C-Kermit to SET MODEM HANGUP-METHOD RS232, and then configure
your modem to ignore DTR (not recommended). "Using C-Kermit", 2nd
Ed., p.86.
- When opening the device first from another application, feed the file
descriptor for the device to C-Kermit using the "-l" (lowercase
letter L) command-line option followed by the numeric file
descriptor, e.g. "kermit -l 6". Then Kermit will not attempt to
open the device, nor to change its characteristics, nor to close it
when done, and when Kermit exits, it will still be available to the
invoking process. "Using C-Kermit", 2nd Ed., p.469.
- When opening the device with C-Kermit, find out the file descriptor
of the open device (it is given by C-Kermit's \v(ttyfd) variable) and
then run ("!") your other program from the C-Kermit prompt, feeding
it the file descriptor, e.g. through shell redirection or a command
line option (the method depends on the other program, the
capabilities of the shell, etc). "Using C-Kermit", 2nd Ed., p.356
- In UNIX, after Kermit makes the connection, type "show comm" to find
out the filename of the lock file. Then suspend Kermit, delete the
lock file, then start the other program and tell it to open the same
tty device.
- Frank